<script>
export default {
  name: 'form-table-column-render',
  functional: true,
  props: {
    text: {
      type: String,
      default: ''
    },
    record: {
      type: Object,
      default: () => {}
    },
    pagination: Object,
    index: Number,
    render: {
      type: Function,
      default: () => {}
    }
  },
  render (h, context) {
    const { text, record, index, pagination, render } = context.props
    return render ? render(h, { text, record, index, pagination }) : text
  }
}
</script>

<style scoped>

</style>
